From 2e27a76edd8bc9781d2928a394a7aa78cb934467 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Sat, 23 May 2020 06:35:27 +0200 Subject: [PATCH] applicationwindow: Stop querying shadow width don't need to do this anymore. --- gtk/gtkapplicationwindow.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c index 8858d7ec04..e4835c9c70 100644 --- a/gtk/gtkapplicationwindow.c +++ b/gtk/gtkapplicationwindow.c @@ -425,7 +425,6 @@ gtk_application_window_measure (GtkWidget *widget, if (orientation == GTK_ORIENTATION_HORIZONTAL) { - GtkBorder border = {0}; int menubar_height = 0; gtk_widget_measure (priv->menubar, GTK_ORIENTATION_VERTICAL, @@ -440,10 +439,6 @@ gtk_application_window_measure (GtkWidget *widget, gtk_widget_measure (priv->menubar, orientation, menubar_height, &menubar_min, &menubar_nat, NULL, NULL); - _gtk_window_get_shadow_width (GTK_WINDOW (widget), &border); - menubar_min += border.left + border.right; - menubar_nat += border.left + border.right; - *minimum = MAX (*minimum, menubar_min); *natural = MAX (*natural, menubar_nat); -- 2.30.2